package com.lframework.xingyun.basedata.mappers;

import com.lframework.starter.web.core.mapper.BaseMapper;
import com.lframework.xingyun.basedata.entity.MemberAccount;

/**
 * <p>
 * 会员积分账户 Mapper 接口
 * </p>
 *
 * @author mos
 */
public interface MemberAccountMapper extends BaseMapper<MemberAccount> {
    /**
     * 根据会员ID查询
     * @param memberId 会员ID
     * @return 会员积分账户
     */
    default MemberAccount queryByMemberId(String memberId) {
        return defaultJoinWrapper()
                .eq(MemberAccount::getMemberId, memberId)
                .first();
    }
}
